package com.jeecg.p3.system.order.entity;

import com.jeecg.p3.system.base.BaseEntity;

/**
 * @author lzx
 * @create 2020-12-01 15:25
 */
public class CourseOrder   extends BaseEntity {

    /** 商品Id **/
    private String productId;
    /** 商品名称 （冗余）**/
    private String productName;
    /** 优惠劵Id**/
    private String couponId;
    /** 订单金额 **/
    private String totalMoney;
    /** 用户昵称 **/
    private String userName;
    /**微信头像**/
    private String wxPhoto;
    /** 状态  0未支付 1等待支付   2支付成功  3支付失败 4已退款 **/
    private Integer payStatus ;
    /** 支付订单号 **/
    private String dataLsh;
    /** 用户唯一标识 **/
    private String openId;
    /** 支付成功下单时间 **/
    private String successTime;
    /** 是否退款 **/
    private String isRefund;
    /** 退款次数 **/
    private Short refundTimes;
    /** 成功退款金额 **/
    private String successRefundAmount;
    private String studyAdvId;//学习顾问id（查询使用，数据库未保存）

    private String startDate;//开始日期（查询使用）
    private String endDate;//结束日期（查询使用）
    private String studyAdvGroup;//是否根据学习顾问进行group by排序，1进行排序
    private String productGroup;//是否根据课程进行group by排序，1进行排序

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getCouponId() {
        return couponId;
    }

    public void setCouponId(String couponId) {
        this.couponId = couponId;
    }

    public String getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(String totalMoney) {
        this.totalMoney = totalMoney;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Integer payStatus) {
        this.payStatus = payStatus;
    }

    public String getDataLsh() {
        return dataLsh;
    }

    public void setDataLsh(String dataLsh) {
        this.dataLsh = dataLsh;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getSuccessTime() {
        return successTime;
    }

    public void setSuccessTime(String successTime) {
        this.successTime = successTime;
    }

    public String getIsRefund() {
        return isRefund;
    }

    public void setIsRefund(String isRefund) {
        this.isRefund = isRefund;
    }

    public Short getRefundTimes() {
        return refundTimes;
    }

    public void setRefundTimes(Short refundTimes) {
        this.refundTimes = refundTimes;
    }

    public String getSuccessRefundAmount() {
        return successRefundAmount;
    }

    public void setSuccessRefundAmount(String successRefundAmount) {
        this.successRefundAmount = successRefundAmount;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getStudyAdvId() {
        return studyAdvId;
    }

    public void setStudyAdvId(String studyAdvId) {
        this.studyAdvId = studyAdvId;
    }

    public String getWxPhoto() {
        return wxPhoto;
    }

    public void setWxPhoto(String wxPhoto) {
        this.wxPhoto = wxPhoto;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getStudyAdvGroup() {
        return studyAdvGroup;
    }

    public void setStudyAdvGroup(String studyAdvGroup) {
        this.studyAdvGroup = studyAdvGroup;
    }

    public String getProductGroup() {
        return productGroup;
    }

    public void setProductGroup(String productGroup) {
        this.productGroup = productGroup;
    }

    public CourseOrder(String productId, String productName, String couponId, String totalMoney, String userName,
                       Integer payStatus, String dataLsh, String openId, String successTime, String isRefund, Short
                               refundTimes, String successRefundAmount) {
        this.productId = productId;
        this.productName = productName;
        this.couponId = couponId;
        this.totalMoney = totalMoney;
        this.userName = userName;
        this.payStatus = payStatus;
        this.dataLsh = dataLsh;
        this.openId = openId;
        this.successTime = successTime;
        this.isRefund = isRefund;
        this.refundTimes = refundTimes;
        this.successRefundAmount = successRefundAmount;
    }

    /**
     * 带参构造函数（课程id，顾客优惠券id，顾客微信昵称，支付状态，顾客微信openid，学习顾问id，创建日期）
     * @param productId
     * @param couponId
     * @param userName
     * @param payStatus
     * @param openId
     * @param studyAdvId
     * @param createDate
     */
    public CourseOrder(String productId, String couponId, String userName, Integer payStatus, String openId,
                       String studyAdvId, String createDate) {
        super(createDate);
        this.productId = productId;
        this.couponId = couponId;
        this.userName = userName;
        this.payStatus = payStatus;
        this.openId = openId;
        this.studyAdvId = studyAdvId;
    }

    /**
     * 带参构造函数（支付状态，学习顾问id，创建日期）
     * @param payStatus 支付状态  0未支付 1等待支付   2支付成功  3支付失败 4已退款
     * @param studyAdvId 学习顾问id
     * @param createDate 创建日期
     */
    public CourseOrder(Integer payStatus, String studyAdvId, String createDate) {
        super(createDate);
        this.payStatus = payStatus;
        this.studyAdvId = studyAdvId;
    }

    public CourseOrder() {
    }
}
